package com.vframework.jms;

import javax.jms.Message;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

/**
 * 
 * Eop消费者
 * @author shanzhitong
 *
 */
@Component
public class JmsConsumer {
	
	protected final Logger logger = Logger.getLogger(getClass());
	
	public void execute(Message msg){
		try{
			System.out.println("监听到的消息内容为： " + msg);
		}catch(Exception e){
			this.logger.error("Jms消息执行出错",e);
		}
	}
}
  
